package com.medreams;

import com.medreams.service.Impl.OrderImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class client {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("bean.xml");
        OrderImpl orderImpl = classPathXmlApplicationContext.getBean("orderImpl", OrderImpl.class);//获取对应的反射出来的类 OrderImpl.class这个相当于断言类型一样 也可放在前面进行强制类型转换
        orderImpl.getOrderList();
    }
}
